package io.renren.modules.sp.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import io.renren.common.service.CrudService;
import io.renren.common.utils.Result;
import io.renren.modules.sp.dto.SpMatchItemDTO;
import io.renren.modules.sp.entity.SpMatchItemEntity;

import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * 赛项
 *
 * @author whc 15953295779@126.com
 * @since 3.0 2023-04-20
 */
public interface SpMatchItemService extends CrudService<SpMatchItemEntity, SpMatchItemDTO> {

    void updateMatchItem(SpMatchItemDTO dto);

    Map<String, Object> itemTotal(Long matchItemId, String type);

    Map<String, Object> itemEntryTotal(Long matchId, Long matchItemId, String type);

    Map<String, Object> queryBymatchItemId(Long matchItemId);

    void updateNotice(SpMatchItemDTO dto);

    Result openDraw(Long matchItemId);

    void syncData();

    void scoreOpen(Long id);

    Result deleteItem(Long[] ids);

    Result<String> downloadHeaderFile(Map<String, Object> params, HttpServletResponse response) throws Exception;

}